package com.haibara.codesubmiteval.judge.model;

import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class ExecuteCodeRespond {
    private Long questionSubmitId;
    // 输出
    private List<String> outputList;
    private List<String> fileOutputList;
    // 时间消耗 - MS
    private Integer timeUsed;
    // 内存消耗 - KB
    private Integer memoryUsed;
    // 执行输出信息 - 异常或报错时出现
    private String message;

    /**
     * 执行状态
     */
    private Integer resultStatus;

    public static final int SUCCESS = 1;
    public static final int ERROR = 0;
    public static final int SYSTEM_ERROR = 2;
}
